// app.js
import './utils/http'
import './utils/util'
App({
  onLaunch(){
    this.getToken()
  },
  getToken(){
    this.token = wx.getStorageSync('token')
  },
  setToken(key,token){
    wx.setStorageSync(key, token)
    this[key] = token
  },
  removeToken(key){
    wx.removeStorageSync('token')
    this[key] = ''
  },
  globalData: {},

})
